package com.sqllite.springbootsqlitejdbc.service;

import com.sqllite.springbootsqlitejdbc.bean.CreditRealTimeParse;
import com.sqllite.springbootsqlitejdbc.repository.CreditRealTimeParseDao;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CreditRealTimeParseService {
    private final CreditRealTimeParseDao creditRealTimeParseDao;

    public CreditRealTimeParseService(CreditRealTimeParseDao creditRealTimeParseDao) {
        this.creditRealTimeParseDao = creditRealTimeParseDao;
    }


    public List<CreditRealTimeParse> getAll() {
        return creditRealTimeParseDao.findAll();
    }

    public void callCreditRealTime(String reportId) {
         creditRealTimeParseDao.callCreditRealTime(reportId);
    }
}
